kmpkg_from_gitee(
    OUT_SOURCE_PATH SOURCE_PATH
    REPO kumo-pub/tally
    REF "v${VERSION}"
    SHA512 b2ff2d6572dbf341d2450533c1365660e6689320aeb51c091c89d2cba5e9302a6d10da2c5e669b5fb8334a40429a746272bf1499dbc88264189b570c8480b55f
    HEAD_REF master
)

kmpkg_cmake_configure(
    SOURCE_PATH "${SOURCE_PATH}"
    OPTIONS
        -DKMCMAKE_BUILD_TEST=OFF
        -DKMCMAKE_BUILD_BENCHMARK=OFF
)

kmpkg_cmake_install(
    DISABLE_PARALLEL
)

kmpkg_copy_pdbs()
kmpkg_cmake_config_fixup(PACKAGE_NAME tally CONFIG_PATH lib/cmake/tally)
kmpkg_fixup_pkgconfig()


file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")

kmpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
